﻿#include "reserveinfo.h"

ReserveInfo::ReserveInfo()
{

}

ReserveInfo::ReserveInfo(int payment, int count, QString reserve, QString user, QString hotel,
                         QString houseType, QString reserveTime, QString checkInTel, QString checkInName,
                         QString checkInTime, QString checkOutTime, QString arrivalTime, QString state,
                         QString hotelName, QString hotelLocation, QString hotelPhone)
{
    m_payment = payment;
    m_houseCount = count;

    m_reserve = reserve;
    m_user = user;
    m_hotel = hotel;
    m_houseType = houseType;
    m_reserveTime = reserveTime;

    m_checkInTel = checkInTel;
    m_checkInName = checkInName;
    m_checkInTime = checkInTime;
    m_checkOutTime = checkOutTime;
    m_arrivalTime = arrivalTime;

    m_state = state;
    m_commentState = "未评论";
    m_hotelName = hotelName;
    m_hotelLocation = hotelLocation;
    m_hotelPhone = hotelPhone;
}

int ReserveInfo::getPayment() const
{
    return  m_payment;
}
int ReserveInfo::getHouseCount() const
{
    return  m_houseCount;
}
const QString& ReserveInfo::getReserve() const
{
    return  m_reserve;
}
const QString& ReserveInfo::getuser() const
{
    return  m_user;
}
const QString& ReserveInfo:: getHotel() const
{
    return  m_hotel;
}
const QString& ReserveInfo:: getHouseType() const
{
    return  m_houseType;
}
const QString& ReserveInfo::getReserveTime() const
{
    return  m_reserveTime;
}
const QString& ReserveInfo::getCheckInTel() const
{
    return  m_checkInTel;
}
const QString& ReserveInfo::getCheckInName() const
{
    return  m_checkInName;
}
const QString& ReserveInfo::getCheckInTime() const
{
    return  m_checkInTime;
}
const QString& ReserveInfo::getCheckOutTime() const
{
    return  m_checkOutTime;
}
const QString& ReserveInfo::getArrivalTime() const
{
    return  m_arrivalTime;
}
const QString& ReserveInfo::getCommentState() const
{
    return  m_commentState;
}
const QString& ReserveInfo::getState() const
{
    return  m_state;
}
const QString& ReserveInfo::getHotelName() const
{
    return  m_hotelName;
}
const QString& ReserveInfo::getHotelLocation() const
{
    return  m_hotelLocation;
}
const QString& ReserveInfo::getHotelPhone() const
{
    return  m_hotelPhone;
}


void ReserveInfo::setPayment(int payment)
{
    m_payment = payment;
}
void ReserveInfo::setHouseCount(int count)
{
    m_houseCount = count;
}
void ReserveInfo::setReserve(const QString& reserve)
{
    m_reserve = reserve;
}
void ReserveInfo::setHotel(const QString& hotel)
{
    m_hotel = hotel;
}
void ReserveInfo::setuser(const QString& user)
{
    m_user = user;
}
void ReserveInfo::setHouseType(const QString& houseType)
{
    m_houseType = houseType;
}
void ReserveInfo::setReserveTime(const QString& reserveTime)
{
    m_reserveTime = reserveTime;
}
void ReserveInfo::setCheckInTel(const QString& checkInTel)
{
    m_checkInTel = checkInTel;
}
void ReserveInfo::setCheckInName(const QString& checkInName)
{
    m_checkInName = checkInName;
}
void ReserveInfo::setCheckInTime(const QString& checkInTime)
{
    m_checkInTime = checkInTime;
}
void ReserveInfo::setCheckOutTime(const QString& checkOutTime)
{
    m_checkOutTime = checkOutTime;
}
void ReserveInfo::setArrivalTime(const QString& arrivalTime)
{
    m_arrivalTime = arrivalTime;
}
void ReserveInfo::setCommentState(const QString& commentState)
{
    m_commentState = commentState;
}
void ReserveInfo::setState(const QString& state)
{
    m_state = state;
}
void ReserveInfo::setHotelName(const QString& hotelName)
{
    m_hotelName = hotelName;
}
void ReserveInfo::setHotelLocation(const QString& hotelLocation)
{
    m_hotelLocation = hotelLocation;
}
void ReserveInfo::setHotelPhone(const QString& hotelPhone)
{
    m_hotelPhone = hotelPhone;
}

